<?php
//创建用户
public function createAccount(){
    $emil = time() . '@wx.com';
    $firstname = 'wx_' . time();
    $_customer = Mage::getModel('customer/customer'); 
    $_customer->setWebsiteId(Mage::app()->getWebsite()->getId()); 
    $_customer->setEmail($emil);
    $_customer->setGroupId(31);
    $_customer->setFirstname($firstname);
    //$_customer->setLastname('wx'); 
    $_customer->password_hash = md5("admin123456"); 
    try { 
        $_customer->save(); 
        $_customer->setConfirmation(null); 
        $_customer->save(); 
    } catch (Exception $e) { 
        //Zend_Debug::dump($e->getMessage()); 
    }
    return $_customer->getEntityId();
}


?>